{extend name="public/father" /}

{block name='main'}
<div class="layui-card">
    <div class="layui-card-body">

        <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
            <p>普 通 域 名，格式：www.qq.com</p>
            <p>支持泛域名，格式：*.qq.com</p>
            <p>入口域名：分享卡片对应的域名，只要入口域名不封，分享卡片就一直能打开</p>
            <p>落地域名：打开网页用到的域名，系统自动随机切换</p>
	        <p>分享域名：分享时所使用的域名</p>
            <p>跳转域名：回退跳转功能专用域名</p>
        </blockquote>

        <form class="layui-form layui-form-pane" method="post" style="margin-top: 10px;">

            <div class="layui-form-item">
                <label class="layui-form-label">域名</label>
                <div class="layui-input-block">
                    <input type="text" name="domain" value="{$data.domain}" required lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">域名类型</label>
                <div class="layui-input-block">
                    <select name="type" lay-verify="required">
                        <option value="1" {$data.type==1?'selected':''}>入口域名「备案」</option>
<!--                        <option value="2" {$data.type==2?'selected':''}>落地域名「无要求，随意」</option>-->
                        <option value="3" {$data.type==3?'selected':''}>分享域名「备案」</option>
                        <option value="9" {$data.type==9?'selected':''}>跳转域名「回退跳转专用」</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">排序</label>
                <div class="layui-input-block">
                    <input type="text" name="sort" value="{$data.sort}" value="500" required lay-verify="number" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">域名状态</label>
                <div class="layui-input-block">
                    <input type="text" name="jiekou" value="{$data.jiekou}" autocomplete="off" placeholder="可为空，微信域名检测结果" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">备注信息</label>
                <div class="layui-input-block">
                    <input type="text" name="desc" value="{$data.desc}" autocomplete="off" placeholder="仅限管理员备注信息，其他地方不使用、不显示" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">域名检测</label>
                <div class="layui-input-block">
                    <input type="checkbox" name="check" value="1" lay-skin="switch" lay-text="启用|禁用" {$data.check == 1 ? 'checked' : ''}>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-block">
                    <input type="checkbox" name="status" value="1" lay-skin="switch" lay-text="启用|禁用" {$data.status == 1 ? 'checked' : ''}>
                </div>
            </div>

            <div class="layui-form-item">
                <div style="text-align: center;">
                    <button class="layui-btn" lay-submit lay-filter="edit">立即提交</button>
                </div>
            </div>

        </form>

    </div>
</div>

<script>
    var editId = "{$data.id|default=0}";
</script>
{/block}
